home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- timeElapsed = maxTime - (getTimer() - timeStart);
- timeRealSeconds = Math.floor(timeElapsed / 1000);
- timeMinutes = Math.floor(timeRealSeconds / 60);
- trace(timeMinutes);
- timeSeconds = timeRealSeconds - timeMinutes * 60;
- if(timeSeconds < 10)
- {
- timeseconds = String("0" + timeseconds);
- }
- _root.timer = timeMinutes + ":" + timeSeconds;
- _root.timeScore = timeRealSeconds;
- if(timeSeconds <= 0 && timeMinutes <= 0)
- {
- _root.gotoAndStop("over");
- }
- }
-